clc;
s=0;
for i=1:10000,
    s=s+1;
    if s>10000,
        break;
    end,
end

s